package com.he.domain.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * @author He
 * @version 1.0
 * @Date 2023/9/12 11:02
 * @Desc 用户信息
 */
@Data
@Schema(description = "用户信息")
public class UserInfoDTO {

    /**
     * 用户昵称
     */
    @NotBlank(message = "昵称不能为空")
    @Size(min = 2, max = 20, message = "昵称不能超过20个字符")
    @Schema(description = "用户昵称")
    private String nickname;

    /**
     * 个人网站
     */
    @Size(min = 2, max = 20, message = "个人网站不能超过20个字符")
    @Schema(description = "个人网站")
    private String webSite;

    /**
     * 个人简介
     */
    @Size(min = 0, max = 50, message = "个人简介不能超过50个字符")
    @Schema(description = "个人简介")
    private String intro;
}

